const mongoose = require('mongoose')

const advSchema = new mongoose.Schema({
  advTitle: {
    type: String,
    required: true,
    unique: true,
  },
  advImg: {
    type: String,
    required: true,
  },
  advCate: {
    type: String,
    required: true,
  },
  advLink: {
    type: String,
    required: true,
  },
  insertDate: {
    type: Date,
    default: Date.now(),
  },
  updateDate: {
    type: Date,
    default: Date.now(),
  },
})

module.exports = advSchema
